﻿using System;
using System.Collections.Generic;
using System.Text;


namespace CostomGameServer
{
	static internal class Options
	{
		//static internal readonly int ServerTimeInterval = 16000;

		/// 还是用帧率来设定tick间隔比较合理
		static internal readonly int FrameRate = 5;
		static internal readonly int FrameInterval = 1000000 / FrameRate;

		static internal readonly int ClientNums = 4;

		static internal readonly int ClientListenPort = 2078;
		static internal readonly int ClientSendPort = ServerListenPort;

		static internal readonly int ServerListenPort = 2079;
		static internal readonly int ServerSendPort = ClientListenPort;

		static internal readonly int ServerRcvBufferSize = 1024;
		static internal readonly int CliendRcvBufferSize = 1024;

	}

	/// <summary>
	/// CommandType做位运算的结果存入Package的Content字段，用来指示Package所含Command的类型
	/// </summary>
	static class CommandType
	{
		static internal int HandShake = 1 << 0;
		static internal int LogIn = 1 << 1;
		static internal int LogOut = 1 << 2;
		static internal int PullRecord = 1 << 3;
		static internal int ServerRefuse = 1 << 4;

		static internal int MoveAndView = 1 << 10;
		static internal int Fire0 = 1 << 11;
		static internal int Fire1 = 1 << 12;
		static internal int Skill0 = 1 << 13;
		static internal int Skill1 = 1 << 14;
		static internal int Skill2 = 1 << 15;
		static internal int Action = 1 << 16;
	}

}
